From e6ac0659665163a32f56b1026b44deab02d55216 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 6 Oct 2022 11:28:12 -0500 Subject: [PATCH] Fix typo "octect" -> "octet" --- .../jetty/http2/hpack/HpackContext.java | 2 +- .../jetty/http2/hpack/HpackEncoder.java | 8 +++---- .../http2/hpack/internal/NBitInteger.java | 2 +- .../jetty/http2/hpack/NBitIntegerTest.java | 24 +++++++++---------- .../http3/qpack/internal/EncodableEntry.java | 10 ++++---- .../instruction/DuplicateInstruction.java | 2 +- .../IndexedNameEntryInstruction.java | 2 +- .../InsertCountIncrementInstruction.java | 2 +- .../SectionAcknowledgmentInstruction.java | 2 +- .../instruction/SetCapacityInstruction.java | 2 +- .../StreamCancellationInstruction.java | 2 +- .../http3/qpack/internal/table/Entry.java | 2 +- .../internal/util/NBitIntegerEncoder.java | 2 +- .../jetty/http3/qpack/NBitIntegerTest.java | 24 +++++++++---------- .../SSLSelectChannelConnectorLoadTest.java | 2 +- 15 files changed, 44 insertions(+), 44 deletions(-) diff --git a/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/HpackContext.java b/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/HpackContext.java index 8f7543d4e0a3..ae99a9f641a3 100644 --- a/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/HpackContext.java +++ b/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/HpackContext.java @@ -463,7 +463,7 @@ public static class StaticEntry extends Entry int huffmanLen = Huffman.octetsNeeded(value); if (huffmanLen < 0) throw new IllegalStateException("bad value"); - int lenLen = NBitInteger.octectsNeeded(7, huffmanLen); + int lenLen = NBitInteger.octetsNeeded(7, huffmanLen); _huffmanValue = new byte[1 + lenLen + huffmanLen]; ByteBuffer buffer = ByteBuffer.wrap(_huffmanValue); diff --git a/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/HpackEncoder.java b/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/HpackEncoder.java index 200c47a0263c..7feb84a3f369 100644 --- a/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/HpackEncoder.java +++ b/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/HpackEncoder.java @@ -319,7 +319,7 @@ public void encode(ByteBuffer buffer, HttpField field) buffer.put((byte)0x80); NBitInteger.encode(buffer, 7, index); if (_debug) - encoding = "IdxField" + (entry.isStatic() ? "S" : "") + (1 + NBitInteger.octectsNeeded(7, index)); + encoding = "IdxField" + (entry.isStatic() ? "S" : "") + (1 + NBitInteger.octetsNeeded(7, index)); } } else @@ -393,7 +393,7 @@ else if (DO_NOT_INDEX.contains(header)) if (_debug) encoding = "Lit" + - ((name == null) ? "HuffN" : ("IdxN" + (name.isStatic() ? "S" : "") + (1 + NBitInteger.octectsNeeded(4, _context.index(name))))) + + ((name == null) ? "HuffN" : ("IdxN" + (name.isStatic() ? "S" : "") + (1 + NBitInteger.octetsNeeded(4, _context.index(name))))) + (huffman ? "HuffV" : "LitV") + (neverIndex ? "!!Idx" : "!Idx"); } @@ -405,7 +405,7 @@ else if (fieldSize >= _context.getMaxDynamicTableSize() || header == HttpHeader. encodeValue(buffer, true, field.getValue()); if (_debug) encoding = "Lit" + - ((name == null) ? "HuffN" : "IdxNS" + (1 + NBitInteger.octectsNeeded(4, _context.index(name)))) + + ((name == null) ? "HuffN" : "IdxNS" + (1 + NBitInteger.octetsNeeded(4, _context.index(name)))) + "HuffV!Idx"; } else @@ -416,7 +416,7 @@ else if (fieldSize >= _context.getMaxDynamicTableSize() || header == HttpHeader. encodeName(buffer, (byte)0x40, 6, header.asString(), name); encodeValue(buffer, huffman, field.getValue()); if (_debug) - encoding = ((name == null) ? "LitHuffN" : ("LitIdxN" + (name.isStatic() ? "S" : "") + (1 + NBitInteger.octectsNeeded(6, _context.index(name))))) + + encoding = ((name == null) ? "LitHuffN" : ("LitIdxN" + (name.isStatic() ? "S" : "") + (1 + NBitInteger.octetsNeeded(6, _context.index(name))))) + (huffman ? "HuffVIdx" : "LitVIdx"); } } diff --git a/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/internal/NBitInteger.java b/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/internal/NBitInteger.java index b655b62f498c..7a33834722c0 100644 --- a/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/internal/NBitInteger.java +++ b/jetty-core/jetty-http2/jetty-http2-hpack/src/main/java/org/eclipse/jetty/http2/hpack/internal/NBitInteger.java @@ -17,7 +17,7 @@ public class NBitInteger { - public static int octectsNeeded(int n, int i) + public static int octetsNeeded(int n, int i) { if (n == 8) { diff --git a/jetty-core/jetty-http2/jetty-http2-hpack/src/test/java/org/eclipse/jetty/http2/hpack/NBitIntegerTest.java b/jetty-core/jetty-http2/jetty-http2-hpack/src/test/java/org/eclipse/jetty/http2/hpack/NBitIntegerTest.java index 21d45e4ca160..a24a3fedd2ef 100644 --- a/jetty-core/jetty-http2/jetty-http2-hpack/src/test/java/org/eclipse/jetty/http2/hpack/NBitIntegerTest.java +++ b/jetty-core/jetty-http2/jetty-http2-hpack/src/test/java/org/eclipse/jetty/http2/hpack/NBitIntegerTest.java @@ -28,17 +28,17 @@ public class NBitIntegerTest @Test public void testOctetsNeeded() { - assertEquals(0, NBitInteger.octectsNeeded(5, 10)); - assertEquals(2, NBitInteger.octectsNeeded(5, 1337)); - assertEquals(1, NBitInteger.octectsNeeded(8, 42)); - assertEquals(3, NBitInteger.octectsNeeded(8, 1337)); - - assertEquals(0, NBitInteger.octectsNeeded(6, 62)); - assertEquals(1, NBitInteger.octectsNeeded(6, 63)); - assertEquals(1, NBitInteger.octectsNeeded(6, 64)); - assertEquals(2, NBitInteger.octectsNeeded(6, 63 + 0x00 + 0x80 * 0x01)); - assertEquals(3, NBitInteger.octectsNeeded(6, 63 + 0x00 + 0x80 * 0x80)); - assertEquals(4, NBitInteger.octectsNeeded(6, 63 + 0x00 + 0x80 * 0x80 * 0x80)); + assertEquals(0, NBitInteger.octetsNeeded(5, 10)); + assertEquals(2, NBitInteger.octetsNeeded(5, 1337)); + assertEquals(1, NBitInteger.octetsNeeded(8, 42)); + assertEquals(3, NBitInteger.octetsNeeded(8, 1337)); + + assertEquals(0, NBitInteger.octetsNeeded(6, 62)); + assertEquals(1, NBitInteger.octetsNeeded(6, 63)); + assertEquals(1, NBitInteger.octetsNeeded(6, 64)); + assertEquals(2, NBitInteger.octetsNeeded(6, 63 + 0x00 + 0x80 * 0x01)); + assertEquals(3, NBitInteger.octetsNeeded(6, 63 + 0x00 + 0x80 * 0x80)); + assertEquals(4, NBitInteger.octetsNeeded(6, 63 + 0x00 + 0x80 * 0x80 * 0x80)); } @Test @@ -84,7 +84,7 @@ public void testEncode(int n, int i, String expected) String r = StringUtil.toHexString(BufferUtil.toArray(buf)); assertEquals(expected, r); - assertEquals(expected.length() / 2, (n < 8 ? 1 : 0) + NBitInteger.octectsNeeded(n, i)); + assertEquals(expected.length() / 2, (n < 8 ? 1 : 0) + NBitInteger.octetsNeeded(n, i)); } @Test diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/EncodableEntry.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/EncodableEntry.java index 7689a7ee44ad..01954fa70537 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/EncodableEntry.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/EncodableEntry.java @@ -95,19 +95,19 @@ public int getRequiredSize(int base) { // Indexed Field Line with Static Reference. int relativeIndex = _entry.getIndex(); - return 1 + NBitIntegerEncoder.octectsNeeded(6, relativeIndex); + return 1 + NBitIntegerEncoder.octetsNeeded(6, relativeIndex); } else if (_entry.getIndex() < base) { // Indexed Field Line with Dynamic Reference. int relativeIndex = base - (_entry.getIndex() + 1); - return 1 + NBitIntegerEncoder.octectsNeeded(6, relativeIndex); + return 1 + NBitIntegerEncoder.octetsNeeded(6, relativeIndex); } else { // Indexed Field Line with Post-Base Index. int relativeIndex = _entry.getIndex() - base; - return 1 + NBitIntegerEncoder.octectsNeeded(4, relativeIndex); + return 1 + NBitIntegerEncoder.octetsNeeded(4, relativeIndex); } } @@ -183,7 +183,7 @@ public int getRequiredSize(int base) String value = getValue(); int relativeIndex = _nameEntry.getIndex() - base; int valueLength = _huffman ? HuffmanEncoder.octetsNeeded(value) : value.length(); - return 1 + NBitIntegerEncoder.octectsNeeded(4, relativeIndex) + 1 + NBitIntegerEncoder.octectsNeeded(7, valueLength) + valueLength; + return 1 + NBitIntegerEncoder.octetsNeeded(4, relativeIndex) + 1 + NBitIntegerEncoder.octetsNeeded(7, valueLength) + valueLength; } @Override @@ -246,7 +246,7 @@ public int getRequiredSize(int base) String value = getValue(); int nameLength = _huffman ? HuffmanEncoder.octetsNeeded(name) : name.length(); int valueLength = _huffman ? HuffmanEncoder.octetsNeeded(value) : value.length(); - return 2 + NBitIntegerEncoder.octectsNeeded(3, nameLength) + nameLength + NBitIntegerEncoder.octectsNeeded(7, valueLength) + valueLength; + return 2 + NBitIntegerEncoder.octetsNeeded(3, nameLength) + nameLength + NBitIntegerEncoder.octetsNeeded(7, valueLength) + valueLength; } @Override diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/DuplicateInstruction.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/DuplicateInstruction.java index 065db37da0ed..8d88d81c2bc2 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/DuplicateInstruction.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/DuplicateInstruction.java @@ -37,7 +37,7 @@ public int getIndex() @Override public void encode(ByteBufferPool.Lease lease) { - int size = NBitIntegerEncoder.octectsNeeded(5, _index) + 1; + int size = NBitIntegerEncoder.octetsNeeded(5, _index) + 1; ByteBuffer buffer = lease.acquire(size, false); buffer.put((byte)0x00); NBitIntegerEncoder.encode(buffer, 5, _index); diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/IndexedNameEntryInstruction.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/IndexedNameEntryInstruction.java index fc8c409ea1b9..68da23fa1201 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/IndexedNameEntryInstruction.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/IndexedNameEntryInstruction.java @@ -54,7 +54,7 @@ public String getValue() @Override public void encode(ByteBufferPool.Lease lease) { - int size = NBitIntegerEncoder.octectsNeeded(6, _index) + (_huffman ? HuffmanEncoder.octetsNeeded(_value) : _value.length()) + 2; + int size = NBitIntegerEncoder.octetsNeeded(6, _index) + (_huffman ? HuffmanEncoder.octetsNeeded(_value) : _value.length()) + 2; ByteBuffer buffer = lease.acquire(size, false); // First bit indicates the instruction, second bit is whether it is a dynamic table reference or not. diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/InsertCountIncrementInstruction.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/InsertCountIncrementInstruction.java index 1a57fe1507fd..d9b02db55f47 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/InsertCountIncrementInstruction.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/InsertCountIncrementInstruction.java @@ -37,7 +37,7 @@ public int getIncrement() @Override public void encode(ByteBufferPool.Lease lease) { - int size = NBitIntegerEncoder.octectsNeeded(6, _increment) + 1; + int size = NBitIntegerEncoder.octetsNeeded(6, _increment) + 1; ByteBuffer buffer = lease.acquire(size, false); buffer.put((byte)0x00); NBitIntegerEncoder.encode(buffer, 6, _increment); diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/SectionAcknowledgmentInstruction.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/SectionAcknowledgmentInstruction.java index 9d6e916591c8..9cd0dba17f18 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/SectionAcknowledgmentInstruction.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/SectionAcknowledgmentInstruction.java @@ -37,7 +37,7 @@ public long getStreamId() @Override public void encode(ByteBufferPool.Lease lease) { - int size = NBitIntegerEncoder.octectsNeeded(7, _streamId) + 1; + int size = NBitIntegerEncoder.octetsNeeded(7, _streamId) + 1; ByteBuffer buffer = lease.acquire(size, false); buffer.put((byte)0x80); NBitIntegerEncoder.encode(buffer, 7, _streamId); diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/SetCapacityInstruction.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/SetCapacityInstruction.java index 0677f700a937..68bc69d0f49c 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/SetCapacityInstruction.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/SetCapacityInstruction.java @@ -37,7 +37,7 @@ public int getCapacity() @Override public void encode(ByteBufferPool.Lease lease) { - int size = NBitIntegerEncoder.octectsNeeded(5, _capacity) + 1; + int size = NBitIntegerEncoder.octetsNeeded(5, _capacity) + 1; ByteBuffer buffer = lease.acquire(size, false); buffer.put((byte)0x20); NBitIntegerEncoder.encode(buffer, 5, _capacity); diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/StreamCancellationInstruction.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/StreamCancellationInstruction.java index a4e8849f71d2..fc8ce46e0cd9 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/StreamCancellationInstruction.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/instruction/StreamCancellationInstruction.java @@ -32,7 +32,7 @@ public StreamCancellationInstruction(long streamId) @Override public void encode(ByteBufferPool.Lease lease) { - int size = NBitIntegerEncoder.octectsNeeded(6, _streamId) + 1; + int size = NBitIntegerEncoder.octetsNeeded(6, _streamId) + 1; ByteBuffer buffer = lease.acquire(size, false); buffer.put((byte)0x40); NBitIntegerEncoder.encode(buffer, 6, _streamId); diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/table/Entry.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/table/Entry.java index 31017343992b..58632c00f5b2 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/table/Entry.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/table/Entry.java @@ -119,7 +119,7 @@ public static class StaticEntry extends Entry int huffmanLen = HuffmanEncoder.octetsNeeded(value); if (huffmanLen < 0) throw new IllegalStateException("bad value"); - int lenLen = NBitIntegerEncoder.octectsNeeded(7, huffmanLen); + int lenLen = NBitIntegerEncoder.octetsNeeded(7, huffmanLen); _huffmanValue = new byte[1 + lenLen + huffmanLen]; ByteBuffer buffer = ByteBuffer.wrap(_huffmanValue); diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/util/NBitIntegerEncoder.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/util/NBitIntegerEncoder.java index 5ee9cc577085..606ff1f3035b 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/util/NBitIntegerEncoder.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/main/java/org/eclipse/jetty/http3/qpack/internal/util/NBitIntegerEncoder.java @@ -17,7 +17,7 @@ public class NBitIntegerEncoder { - public static int octectsNeeded(int n, long i) + public static int octetsNeeded(int n, long i) { if (n == 8) { diff --git a/jetty-core/jetty-http3/jetty-http3-qpack/src/test/java/org/eclipse/jetty/http3/qpack/NBitIntegerTest.java b/jetty-core/jetty-http3/jetty-http3-qpack/src/test/java/org/eclipse/jetty/http3/qpack/NBitIntegerTest.java index 6dfe2dfc18d0..bab23efd61d3 100644 --- a/jetty-core/jetty-http3/jetty-http3-qpack/src/test/java/org/eclipse/jetty/http3/qpack/NBitIntegerTest.java +++ b/jetty-core/jetty-http3/jetty-http3-qpack/src/test/java/org/eclipse/jetty/http3/qpack/NBitIntegerTest.java @@ -31,17 +31,17 @@ public class NBitIntegerTest @Test public void testOctetsNeeded() { - assertEquals(0, NBitIntegerEncoder.octectsNeeded(5, 10)); - assertEquals(2, NBitIntegerEncoder.octectsNeeded(5, 1337)); - assertEquals(1, NBitIntegerEncoder.octectsNeeded(8, 42)); - assertEquals(3, NBitIntegerEncoder.octectsNeeded(8, 1337)); - - assertEquals(0, NBitIntegerEncoder.octectsNeeded(6, 62)); - assertEquals(1, NBitIntegerEncoder.octectsNeeded(6, 63)); - assertEquals(1, NBitIntegerEncoder.octectsNeeded(6, 64)); - assertEquals(2, NBitIntegerEncoder.octectsNeeded(6, 63 + 0x00 + 0x80 * 0x01)); - assertEquals(3, NBitIntegerEncoder.octectsNeeded(6, 63 + 0x00 + 0x80 * 0x80)); - assertEquals(4, NBitIntegerEncoder.octectsNeeded(6, 63 + 0x00 + 0x80 * 0x80 * 0x80)); + assertEquals(0, NBitIntegerEncoder.octetsNeeded(5, 10)); + assertEquals(2, NBitIntegerEncoder.octetsNeeded(5, 1337)); + assertEquals(1, NBitIntegerEncoder.octetsNeeded(8, 42)); + assertEquals(3, NBitIntegerEncoder.octetsNeeded(8, 1337)); + + assertEquals(0, NBitIntegerEncoder.octetsNeeded(6, 62)); + assertEquals(1, NBitIntegerEncoder.octetsNeeded(6, 63)); + assertEquals(1, NBitIntegerEncoder.octetsNeeded(6, 64)); + assertEquals(2, NBitIntegerEncoder.octetsNeeded(6, 63 + 0x00 + 0x80 * 0x01)); + assertEquals(3, NBitIntegerEncoder.octetsNeeded(6, 63 + 0x00 + 0x80 * 0x80)); + assertEquals(4, NBitIntegerEncoder.octetsNeeded(6, 63 + 0x00 + 0x80 * 0x80 * 0x80)); } @Test @@ -87,7 +87,7 @@ public void testEncode(int n, int i, String expected) String r = TypeUtil.toHexString(BufferUtil.toArray(buf)); assertEquals(expected, r); - assertEquals(expected.length() / 2, (n < 8 ? 1 : 0) + NBitIntegerEncoder.octectsNeeded(n, i)); + assertEquals(expected.length() / 2, (n < 8 ? 1 : 0) + NBitIntegerEncoder.octetsNeeded(n, i)); } @Test diff --git a/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SSLSelectChannelConnectorLoadTest.java b/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SSLSelectChannelConnectorLoadTest.java index 250898ceb644..239ce0ff1a6a 100644 --- a/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SSLSelectChannelConnectorLoadTest.java +++ b/jetty-core/jetty-server/src/test/java/org/eclipse/jetty/server/ssl/SSLSelectChannelConnectorLoadTest.java @@ -247,7 +247,7 @@ public void run() out.write("POST / HTTP/1.1\r\n".getBytes()); out.write("Host: localhost\r\n".getBytes()); out.write(("Content-Length: " + contentSize + "\r\n").getBytes()); - out.write("Content-Type: application/octect-stream\r\n".getBytes()); + out.write("Content-Type: application/octet-stream\r\n".getBytes()); if (closeConnection) out.write("Connection: close\r\n".getBytes()); out.write("\r\n".getBytes());