stretchr / goweb

A lightweight RESTful web framework for Go
632 stars 61 forks source link

Dotted urls may confuse goweb parameters #76

Closed coredump closed 10 years ago

coredump commented 10 years ago

When using dotted urls, like for example:

http://host/whois/10.0.0.1

and capturing it with a Map("/whois/{ip}...") the captured variable only gets the first part, ignoring anything after the first dot.

matryer commented 10 years ago

This is because Goweb cares about file extensions. So it leaves you with a few options:

coredump commented 10 years ago

Ok thanks, I will proceed parsing the path myself.