Marcel Hellkamp

Results 233 comments of Marcel Hellkamp

I don"t like the API yet... Perhaps the exception-based approach is not the best one (or should not be the only one). How about: response.etag = 'abc' # defaults to...

I'm still convinced that a multi-valued `X-Forwarded-Host` header is a configuration error in the reverse-proxy or load-balancer setup, and does not make any sense. The header should contain the original...

So CherryPy removed the WSGI server API in version 9 and re-added it in version 18? Hmm. I think we should finally drop support for cherrypy 9+. The WSGI part...

I don't see a bug here that needs fixing. Let me quote https://docs.python.org/3/tutorial/modules.html#intra-package-references > Note that relative imports are based on the name of the current module. Since the name...

> Are you saying that code that runs fine without reloader should crash with reloader? No, I was saying that "I'm not sure if I understand the problem.". Thanks for...

Nah, that would have been too easy. Bottle needs to check `__package__` of the `__main__` module if it is not itself the main module. So your more complex workaround is...

Sooo... would that work? ```py args = [sys.executable] + sys.argv if getattr(sys.modules.get('__main__'), '__package__', None): # If a package was loaded with `python -m`, then `sys.argv` # is wrong and needs...

It's been a while and I (accidentally) pushed the (broken) partial solution I did a while ago to master now :/ My current best guess for a complete solution is...

No. Content negotiation is quite complex (if you actually want to implement the spec) and also a completely optional part of HTTP. Perhaps caused by the complexity and unintuitive rules,...

Could be some header the HttpUrlConnection chokes on. Or a bug in the handling of range requests. Or... actually I have no idea :/