Skip to content

Commit

Permalink
fix(readBody, readRawBody): use global symbol (#174)
Browse files Browse the repository at this point in the history
  • Loading branch information
chmking committed Sep 3, 2022
1 parent 0bc96f1 commit dcf208a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import destr from 'destr'
import type { Encoding, HTTPMethod, CompatibilityEvent } from '../types'
import { assertMethod } from './request'

const RawBodySymbol = Symbol('h3RawBody')
const ParsedBodySymbol = Symbol('h3RawBody')
const RawBodySymbol = Symbol.for('h3RawBody')
const ParsedBodySymbol = Symbol.for('h3ParsedBody')

const PayloadMethods: HTTPMethod[] = ['PATCH', 'POST', 'PUT', 'DELETE']

Expand Down

0 comments on commit dcf208a

Please sign in to comment.