Skip to content

Commit e3680e5

Browse files
hhaenselhhaensel
andauthored
fix version check for public declarations (#1313)
Co-authored-by: hhaensel <helmut.haensel@gmx.com>
1 parent 4c50080 commit e3680e5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/HTTP.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ include("http_websockets.jl")
6666
# not repeated here. The version guard keeps the source parseable on Julia 1.10
6767
# (the `public` keyword does not exist there); `eval(Expr(:public, …))` is valid
6868
# syntax on all versions, so only the evaluation is gated.
69-
@static if VERSION >= v"1.11.0-DEV.469"
69+
@static if Base.VERSION >= v"1.11.0-DEV.469"
7070
Core.eval(@__MODULE__, Expr(:public,
7171
Symbol("@client"),
7272
:AbstractBody, :AddressInUseError, :CallbackBody, :CanceledError, :Client,

src/http_handlers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ getcookies(req) = get(() -> Cookie[], req.context, :cookies)
485485

486486
# `handlertimeout` is documented public API but not exported; mark it public on
487487
# Julia versions that support the mechanism (the source stays parseable on 1.10).
488-
@static if VERSION >= v"1.11.0-DEV.469"
488+
@static if Base.VERSION >= v"1.11.0-DEV.469"
489489
Core.eval(@__MODULE__, Expr(:public, :handlertimeout))
490490
end
491491

src/http_websockets.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ end
17951795

17961796
# Documented public API of this submodule (accessed as `HTTP.WebSockets.name`).
17971797
# Version-gated like the main module so the source parses on Julia 1.10.
1798-
@static if VERSION >= v"1.11.0-DEV.469"
1798+
@static if Base.VERSION >= v"1.11.0-DEV.469"
17991799
Core.eval(@__MODULE__, Expr(:public,
18001800
:CloseFrameBody, :Conn, :Server, :WebSocket, :WebSocketError, :forceclose,
18011801
:isupgrade, :listen, :listen!, :open, :ping, :pong, :receive, :send, :serve!,

0 commit comments

Comments
 (0)