Comments (6)
line 444 in jester.nim:
if not (response.data[2]["Content-Type"] != "" or ext == ""):
I found Response.data.headers = {:} , nothing contained
console debug:
DEBUG get /attachment/1 attachment=1 DEBUG 502 Bad Gateway {Content-Length: 1620, Content-Type: text/html;charset=utf-8}
from jester.
I have change the line 444 :
#line 444 if not (response.data[2]["Content-Type"] != "" or ext == ""): let ct = response.data[2].getOrDefault("Content-Type") if (ct != nil and ct != "" and ext != ""):
rebuild and run ,it is OK
from jester.
The implementation of []
recently changed in Nim, so yeah, that looks like a valid fix.
from jester.
In fact , I hope The implementation of []
return nil or default value instead of raising the exception when not found, as getOrDefault() does. For the reason of it , I use much more getOrDefault()
than []
,which is inconvenient.
from jester.
I hope The implementation of [] return nil or default value instead of raising the exception when not found
It used to, but that was changed recently. getOrDefault
behaves this way now.
Think you could open a PR to fix this?
from jester.
Fixed via #62
from jester.
Related Issues (20)
- development on windows (httpbeast) HOT 1
- finally block getting called twice? HOT 3
- Support binding on IPv6 address
- `std/cgi` will be moved to nimble packages
- Runtime SIGBUS: HOT 1
- how to use the setCookie fuction? HOT 1
- Docs: adding sections
- formData identical keys
- Bump tag to give new version through nimble HOT 2
- Revert PR #171 which auto decodes URL parameters HOT 6
- The jester.nimble file needs to be updated for v0.6.0 HOT 2
- Cannot serve dynamic web pages HOT 1
- Jester is not working with nim version 2.0.0 HOT 4
- static folder not working HOT 3
- Fix for SIGSEGV: Illegal storage access from lib/system/orc.nim nimIncRefCyclic HOT 1
- [security issue] http 1.1 request smuggling HOT 1
- Error: type mismatch Expression: httpbeast.initSettings HOT 5
- Graphql support?
- SIGSEGV: Illegal storage access. (Attempt to read from nil?) HOT 1
- checkbox is not added to request.params when checkbox is not checked initially HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jester.