#1 2019-01-30 17:34:06

Desenvolvimento
Member
Registered: 2017-09-14
Posts: 6

How to Decrease Request Header Output?

Is it possible to change this?

HTTP/1.1 200
status: 200
Content-Type: application/json; charset=UTF-8
Server: mORMot (Windows) Microsoft-HTTPAPI/2.0
X-Powered-By: mORMot 1.18 synopse.info

Accept-Encoding: deflate
Date: Wed, 30 Jan 2019 17:03:35 GMT
Content-Length: 18

to

HTTP/1.1 200
status: 200
Content-Type: application/json; charset=UTF-8
Accept-Encoding: deflate
Content-Length: 18

tks

Offline

#2 2019-01-30 18:56:10

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,275
Website

Re: How to Decrease Request Header Output?

I don't think Date: comes from SynCrtSock.pas.
It comes from http.sys itself I guess.

Also the Server: header comes from http.sys.
You can customize its content by setting the THttpServerGeneric.ServerName property.

Just define NOXPOWEREDNAME conditional to avoid the "x-powered-by" header.

Offline

Board footer

Powered by FluxBB