Skip to content

mime: outdated mimetype for javascript files #7498

@gopherbot

Description

@gopherbot

by mhh.dreadlord:

What does 'go version' print?

go version go1.2.1 linux/amd64


What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

Run the following program:

http://play.golang.org/p/7O41RLu0QX

What happened?

Prints: application/x-javascript

What should have happened instead?

It should print: application/javascript

Please provide any additional information below.

This file http://golang.org/src/pkg/mime/type.go uses an outdated mime type for
".js" extensions, it should be changed to comply with the standard.

Relevant RFC: http://www.rfc-editor.org/rfc/rfc4329.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsDecisionFeedback is required from experts, contributors, and/or the community before a change can be made.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions