#23 No content-type in response
Closed: Fixed None Opened 4 years ago by codeblock.

When I make a request to the API, the headers I get back are:

HTTP/1.1 200 OK
Date: Thu, 26 Nov 2015 20:39:56 GMT
Server: Python/3.4 aiohttp/0.17.4
Strict-Transport-Security: max-age=15768000; includeSubDomains; preload
CONTENT-LENGTH: 1554
Vary: Accept-Encoding
AppTime: D=237833
AppServer: proxy04.fedoraproject.org
Connection: close

It's not strictly required by RFC2616, but is recommended and makes life easier for client implementations, at times.


Specifically, the content type should be application/json here.

Noting that I hit this today:

~❯ http get https://apps.fedoraproject.org/mdapi/rawhide/pkg/openssh-clients             
HTTP/1.1 200 OK
AppServer: proxy11.fedoraproject.org
AppTime: D=236077
Connection: Keep-Alive
Content-Encoding: gzip
Content-Length: 712
Date: Thu, 28 Jan 2016 16:56:37 GMT
Keep-Alive: timeout=15, max=500
Server: Python/3.4 aiohttp/0.17.4
Strict-Transport-Security: max-age=15768000; includeSubDomains; preload
Vary: Accept-Encoding

{"conflicts": [], "enhances": [], "co-packages": ["openssh-cavs", "openssh-askpass", "openssh", "pam_ssh_agent_auth", "openssh-ldap", "openssh-keycat", "openssh-server", "openssh-clients", "openssh-clients-ssh1"], "release": "2.fc24", "arch": "x86_64", "obsoletes": [], "provides": [{"version": "7.1p2", "epoch": "0", "name": "openssh-clients(x86-64)", "release": "2.fc24"}, {"version": "7.1p2", "epoch": "0", "name": "openssh-clients", "release": "2.fc24"}, {"version": "7.1p2", "epoch": "0", "name": "config(openssh-clients)", "release": "2.fc24"}], "basename": "openssh", "requires": [{"version": null, "epoch": null, "name": "rtld(GNU_HASH)", "release": null}, {"version": "7.1p2", "epoch": "0", "name": "openssh", "release": "2.fc24"}, {"version": null, "epoch": null, "name": "libz.so.1()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libutil.so.1()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libtinfo.so.6()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libselinux.so.1()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libresolv.so.2(GLIBC_2.2.5)(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libresolv.so.2()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libnsl.so.1()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libldap-2.4.so.2()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "liblber-2.4.so.2()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libkrb5.so.3()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libk5crypto.so.3()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libgssapi_krb5.so.2(gssapi_krb5_2_MIT)(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libgssapi_krb5.so.2()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libfipscheck.so.1()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libedit.so.0()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libdl.so.2(GLIBC_2.2.5)(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libdl.so.2()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libcrypto.so.10(libcrypto.so.10)(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libcrypto.so.10(OPENSSL_1.0.2)(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libcrypto.so.10(OPENSSL_1.0.1_EC)(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libcrypto.so.10()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libcrypt.so.1()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libcom_err.so.2()(64bit)", "release": null}, {"version": null, "epoch": null, "name": "libc.so.6(GLIBC_2.17)(64bit)", "release": null}, {"version": "1.3.0", "epoch": "0", "name": "fipscheck-lib(x86-64)", "release": null}, {"version": null, "epoch": null, "name": "/bin/sh", "release": null}], "description": "OpenSSH is a free version of SSH (Secure SHell), a program for logging\ninto and executing commands on a remote machine. This package includes\nthe clients necessary to make encrypted connections to SSH servers.", "supplements": [], "version": "7.1p2", "suggests": [], "repo": "release", "epoch": "0", "recommends": [], "summary": "An open source SSH client applications"}

Login to comment on this ticket.

Metadata