Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

MapFunc matching all substrings #9

Closed
Nican opened this Issue May 5, 2013 · 3 comments

Comments

Projects
None yet
2 participants

Nican commented May 5, 2013

I am having an issue such that MapFunc is matching anything with the sub string of the path. For example:

goweb.MapFunc("/a", serverA)
goweb.MapFunc("/nota", serverB)

And any page containing "a" will call serverA, including "localhost:8080/nota", and for example, "localhost:8080/ishouldbe404a" is also calling serveA.

Owner

matryer commented May 5, 2013

Yes - this is fixed in Goweb 2 (the v2 branch) but its not 100% ready. Meanwhile, be more specific first (I.e switch them around)

Sent from my iPhone

On 5 May 2013, at 06:30, Nican notifications@github.com wrote:

I am having an issue such that MapFunc is matching anything with the sub string of the path. For example:

goweb.MapFunc("/a", serverA)
goweb.MapFunc("/nota", serverB)
And any page containing "a" will call serverA, including "localhost:8080/nota", and for example, "localhost:8080/ishouldbe404a" is also calling serveA.


Reply to this email directly or view it on GitHub.

Owner

matryer commented May 28, 2013

UPDATE: Goweb 2 is ready... and your code will work properly if you use it.

Owner

matryer commented May 31, 2013

This is fixed in Goweb 2

@matryer matryer closed this May 31, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment