cds-snc / url-shortener

An API written in Python that shortens URLs
MIT License
4 stars 0 forks source link

fix: set max URL length that can shorten #372

Closed patheard closed 1 year ago

patheard commented 1 year ago

Summary

Update the URL validation logic to prevent URLs longer than 2048 characters from being shortened.

For simplicity, I am continuing to return a 400 HTTP status code from the API if this error condition is triggered.

Related