Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZnDefaultServerDelegate>>handleRequest: does not handle slash correctly #22

Open
GlennCavarle opened this issue Sep 14, 2018 · 0 comments

Comments

@GlennCavarle
Copy link

GlennCavarle commented Sep 14, 2018

Hi,
I just detected an issue while randomly reading the code of ZnDefaultServerDelegate>>handleRequest:.
Request handling for'/' seems to be buggy.

prefix := request uri isSlash
	ifTrue: [ prefixMap at: '/' ifAbsent: [ nil ] ]
	ifFalse: [ request uri firstPathSegment ].

If an handler is defined at '/' in prefixMap, the prefix variable is set with the handler, not with '/'.

Cheers,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant