Skip to content

Commit 4fe536d

Browse files
committed
Fix #445 return type for Header#get
1 parent e912d3c commit 4fe536d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/org/scalajs/dom/experimental/Fetch.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ class Headers(map: HeadersInit = js.Array[js.Array[String]]())
309309
*
310310
* @param name a ByteString, ie. only ASCII chars
311311
*/
312-
def get(name: ByteString): js.UndefOr[ByteString] = js.native
312+
def get(name: ByteString): ByteString = js.native
313313

314314
/**
315315
* The getAll() method of the Headers interface returns an array of all the

0 commit comments

Comments
 (0)