X Tutup
Skip to content

Node: add Content-Type HTTP response header#70970

Merged
typescript-bot merged 1 commit intoDefinitelyTyped:masterfrom
EvanHahn:node-OutgoingHttpHeaders-ContentType
Oct 29, 2024
Merged

Node: add Content-Type HTTP response header#70970
typescript-bot merged 1 commit intoDefinitelyTyped:masterfrom
EvanHahn:node-OutgoingHttpHeaders-ContentType

Conversation

@EvanHahn
Copy link
Contributor

Please fill in this template.

If changing an existing definition:

  • Provide a URL to documentation or source code which provides context for the suggested changes: nothing super relevant
  • If this PR brings the type definitions up to date with a new version of the JS library, update the version number in the package.json.

See also: #70705

@EvanHahn EvanHahn marked this pull request as ready for review October 21, 2024 22:29
@typescript-bot
Copy link
Contributor

typescript-bot commented Oct 21, 2024

@EvanHahn Thank you for submitting this PR!

This is a live comment that I will keep updated.

1 package in this PR

Code Reviews

Because this is a widely-used package, a DT maintainer will need to review it before it can be merged.

You can test the changes of this PR in the Playground.

Status

  • ✅ No merge conflicts
  • ✅ Continuous integration tests have passed
  • ✅ Only a DT maintainer can approve changes without tests

All of the items on the list are green. To merge, you need to post a comment including the string "Ready to merge" to bring in your changes.


Diagnostic Information: What the bot saw about this PR
{
  "type": "info",
  "now": "-",
  "pr_number": 70970,
  "author": "EvanHahn",
  "headCommitOid": "5b462c91b859d1840eb9c2747edef7838c0a257c",
  "mergeBaseOid": "6b4dd9be602e91461cc0a01cab9e082bcb14cced",
  "lastPushDate": "2024-10-21T22:10:28.000Z",
  "lastActivityDate": "2024-10-29T16:31:09.000Z",
  "mergeOfferDate": "2024-10-29T16:30:17.000Z",
  "mergeRequestDate": "2024-10-29T16:31:09.000Z",
  "mergeRequestUser": "EvanHahn",
  "hasMergeConflict": false,
  "isFirstContribution": false,
  "tooManyFiles": false,
  "hugeChange": false,
  "popularityLevel": "Critical",
  "pkgInfo": [
    {
      "name": "node",
      "kind": "edit",
      "files": [
        {
          "path": "types/node/http.d.ts",
          "kind": "definition"
        }
      ],
      "owners": [
        "Microsoft",
        "jkomyno",
        "alvis",
        "r3nya",
        "btoueg",
        "smac89",
        "touffy",
        "DeividasBakanas",
        "eyqs",
        "Hannes-Magnusson-CK",
        "hoo29",
        "kjin",
        "ajafff",
        "islishude",
        "mwiktorczyk",
        "mohsen1",
        "galkin",
        "parambirs",
        "eps1lon",
        "ThomasdenH",
        "WilcoBakker",
        "wwwy3y3",
        "samuela",
        "kuehlein",
        "bhongy",
        "chyzwar",
        "trivikr",
        "yoursunny",
        "qwelias",
        "ExE-Boss",
        "peterblazejewicz",
        "addaleax",
        "victorperin",
        "ZYSzys",
        "NodeJS",
        "LinusU",
        "wafuwafu13",
        "mcollina",
        "Semigradsky"
      ],
      "addedOwners": [],
      "deletedOwners": [],
      "popularityLevel": "Critical"
    }
  ],
  "reviews": [
    {
      "type": "approved",
      "reviewer": "RyanCavanaugh",
      "date": "2024-10-29T16:29:38.000Z",
      "isMaintainer": true
    }
  ],
  "mainBotCommentID": 2427856269,
  "ciResult": "pass"
}

@typescript-bot typescript-bot added Critical package Untested Change This PR does not touch tests labels Oct 21, 2024
@typescript-bot
Copy link
Contributor

Hey @EvanHahn,

😒 Your PR doesn't modify any tests, so it's hard to know what's being fixed, and your changes might regress in the future. Please consider adding tests to cover the change you're making. Including tests allows this PR to be merged by yourself and the owners of this module.

This can potentially save days of time for you!

@typescript-bot
Copy link
Contributor

@EvanHahn
Copy link
Contributor Author

Tests already existed here:

const headers: http.OutgoingHttpHeaders = {
"content-type": "application/json",

@typescript-bot typescript-bot added Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner labels Oct 29, 2024
@typescript-bot
Copy link
Contributor

@EvanHahn: Everything looks good here. I am ready to merge this PR (at 5b462c9) on your behalf whenever you think it's ready.

If you'd like that to happen, please post a comment saying:

Ready to merge

and I'll merge this PR almost instantly. Thanks for helping out! ❤️

(@microsoft, @jkomyno, @alvis, @r3nya, @btoueg, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Hannes-Magnusson-CK, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @galkin, @parambirs, @eps1lon, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @yoursunny, @qwelias, @ExE-Boss, @peterblazejewicz, @addaleax, @victorperin, @ZYSzys, @nodejs, @LinusU, @wafuwafu13, @mcollina, @Semigradsky: you can do this too.)

@EvanHahn
Copy link
Contributor Author

Ready to merge

@typescript-bot typescript-bot merged commit 021d8e8 into DefinitelyTyped:master Oct 29, 2024
@EvanHahn EvanHahn deleted the node-OutgoingHttpHeaders-ContentType branch October 29, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Critical package Maintainer Approved Self Merge This PR can now be self-merged by the PR author or an owner Untested Change This PR does not touch tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

X Tutup