Athanasius 81a70572c9 Gateway: Properly report 'not compressed, badly form-encoded' to uploaders
* This code worked if the request was *properly* form-encoded, with a
'data' key whose value was a valid message.

* It failed to detect where the request was form-encoded, with without a
'data' key.  It would just assume 'not form-encoded' in that case, then
fail later on JSON parsing.

Thus, re-use the `urlparse.parse_qs()` check for form-encoded format.
This passes:

  1. Properly, `data` key, form-encoded with valid value is fully JSON
  parsed, schema checked and accepted.
  2. *NOT* compressed *or* form-encoded valid message is properly parsed
  and accepted.
  2. Uncompressed, form-encoded, but no `data` key correctly returns the
  same error status and body as the compressed+form-encoded+no data key
  path.
2022-01-09 15:31:39 +00:00
2018-03-12 15:07:50 +01:00
2017-07-03 13:40:44 +02:00
2019-10-03 14:55:34 +02:00
2015-05-04 11:42:38 +02:00

EDDN - Elite: Dangerous Data Network

The Elite: Dangerous Data Network is a system for willing Commanders to share dynamic data about the galaxy with others.
By pooling data in a common format, tools and analyses can be produced that add an even greater depth and vibrancy to the in-game universe.

EDDN is not run by or affiliated with Frontier Developments.

Hosting has been very generously provided by Vivio Technologies, until 2017.
Hosting is now provided by the EDCD community.

Using EDDN

EDDN Status

Description
No description provided
Readme BSD-3-Clause 1.9 MiB
Languages
Python 46.7%
JavaScript 24.2%
HTML 16.4%
Shell 12.2%
CSS 0.5%