ring-clojure / ring-headers

Ring middleware for common response headers
26 stars 12 forks source link

Add absolute redirect support for resource creation #4

Closed zyegfryed closed 9 years ago

zyegfryed commented 9 years ago

When creating a new resource, it's common to return a Location header with an HTTP status code 201. The following pull-request adds support to turn relative URLs returned from the created response to absolute ones.

weavejester commented 9 years ago

Perfect. Thanks!