eexit / mirror-http-server

A dummy HTTP server that responds whatever you told it to
https://mirror-http-server.web.app
MIT License
38 stars 7 forks source link

Use global regex to replace spaces in header #15

Closed EwanRoycroft closed 2 years ago

EwanRoycroft commented 2 years ago

Using ' ' would only search for the first instance of a space, and then exit. Using / /g looks for all spaces in the string and doesn't exit after the first match.

Resolves: #14

eexit commented 2 years ago

Thanks for your contribution. It's been closed by 1160f95b09fb9dbe3e386c3de81b55ece7d90a48.