[Gambas-Notification] [Git][gambas/gambas][master] Request: Fix Language property and add ContentType and ContentLength properties.

Benoît Minisini gitlab at mg.gitlab.com
Fri Aug 2 02:41:46 CEST 2019



Benoît Minisini pushed to branch master at Gambas / gambas


Commits:
c8d94ef9 by gambas at 2019-08-02T00:36:16Z
Request: Fix Language property and add ContentType and ContentLength properties.

[GB.WEB]
* NEW: Request.ContentType is a new property that returns the Content-Type HTTP header.
* NEW: Request.ContentLength is a new property that returns the Content-Length HTTP header, or -1 if the header is not present.
* BUG: Request.Language now uses an internal dictionary to convert the Accept-Language HTTP header to a correct system language.
* BUG: Request.Language now takes the priority of languages specified in the Accept-Language HTTP header into account.
* BUG: If the request exceeds the maximum size defined by Request.MaxFileSize, a "Request too big" error is raised instead of "Response too big".

- - - - -


4 changed files:

- comp/src/gb.web/.src/Main.module
- comp/src/gb.web/.src/Request.module
- comp/src/gb.web/.src/_Request_Post.class
- + comp/src/gb.web/lang.cache


View it on GitLab: https://gitlab.com/gambas/gambas/commit/c8d94ef9b1dd856a0b2e600328e8c218ae1bc89a

-- 
View it on GitLab: https://gitlab.com/gambas/gambas/commit/c8d94ef9b1dd856a0b2e600328e8c218ae1bc89a
You're receiving this email because of your account on gitlab.com.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/notification/attachments/20190802/d553ad86/attachment.html>


More information about the Notification mailing list