Python 3.10 is now available in preview.

google.appengine.api.appinfo_errors.ContentTypeSpecifiedMultipleTimes

Raised when mime_type and http_headers specify a mime type.

Inherits From: Error, expected_type

This error will be raised even when both fields specify the same content type. For example, the following configuration will be rejected:

  handlers:

  - url: /static
    static_dir: static
    mime_type: text/html
    http_headers:
      content-type: text/html

This only applies to static handlers, such as a handler that specifies static_dir or static_files.