File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
-- ----------------------------------------------------------------------------
2
2
-- Ada Web Server --
3
3
-- --
4
- -- Copyright (C) 2000-2019 , AdaCore --
4
+ -- Copyright (C) 2000-2020 , AdaCore --
5
5
-- --
6
6
-- This library is free software; you can redistribute it and/or modify --
7
7
-- it under terms of the GNU General Public License as published by the --
@@ -469,6 +469,8 @@ package body AWS.Translator is
469
469
State : in out Encoding_State)
470
470
is
471
471
Encoded_Length : Integer;
472
+ Base_Elem : constant access constant Base64_Encode_Array :=
473
+ Base64 (MIME)'Access ;
472
474
begin
473
475
case State.Current_State is
474
476
when 1 =>
@@ -489,7 +491,7 @@ package body AWS.Translator is
489
491
490
492
Encoded_Length := 4 * ((State.Count + 2 ) / 3 );
491
493
492
- if State.To_Char = Base64 (MIME)' Access then
494
+ if State.To_Char = Base_Elem then
493
495
for I in State.Last .. Encoded_Length loop
494
496
Add (' =' );
495
497
end loop ;
You can’t perform that action at this time.
0 commit comments